﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using YJKRevitKernel.XYZUtility;

namespace YJKRevitDimensionText.OneKeyPlanDim.DimesionDataEx
{
	public class XYZComparer : IEqualityComparer<XYZ>
	{
		public XYZComparer(double dTol = 0.0001)
		{
			this.m_dTol = dTol;
		}

		public bool Equals(XYZ ptA, XYZ ptB)
		{
			return ptA != null && ptB != null && XYZUtilityMethod.IsParallel(ptA, ptB, this.m_dTol);
		}

		public int GetHashCode(XYZ point)
		{
			return 0;
		}

		private double m_dTol;
	}
}
